package cn.slipi.admin.constants;

/**
 * web 静态配置
 *
 * @author lee
 * @date 2019-03-17
 * @since 1.0.0
 */
public class AdminConstants {

    /**
     * 用到的redis前缀
     */
    public static final String REDIS_PRE_FIX_API = "api";
    /**
     * TOKEN保存时间
     */
    public static final Integer TOKEN_LIFE = 60 * 60;
    /**
     * 权限点授权列表
     */
    public static final String AUTH_PERMISSION = "auth.permission";


    /**
     * 初始密码
     */
    public static final String INIT_PASSWORD = "123456";

    /**
     * 后端允许的最大单页查询记录数
     */
    public static final int MAX_PAGE_SIZE = 500;

    /**
     * api
     */
    public static final String CAR_API_PREFIX = "mapi";
    /**
     * token
     */
    public static final String TOKEN = "token";
    /**
     * repeat token
     */
    public static final String REPEAT_TOKEN = "r_token";

    /**
     * header token
     */
    public static final String TOKEN_KEY = "token";

    /**
     * 用户禁止登陆
     */
    public static final Integer USER_UNCHECK = 0;

    /**
     * header auth
     */
    public static final String SIGN = "sign";

    /**
     * REPEAT TOKEN保存时间
     */
    public static final Integer REPEAT_TOKEN_LIFE = 60 * 60;

    public static final String APP_ID = "wx6204d21789a1a0bb";

    public static final String APP_SECRET = "17fae1617eec9a94020968d281700522";

    /**
     * message
     */
    public static final String MESSAGE_PREFIX = "message";
    /**
     * message time
     */
    public static final Integer MESSAGE_LIFE = 5 * 60;
}
